package com.sporadic.backstage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 订单详情表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("orderdetails")
public class OrderDetails {

    //主键
    private Integer odId;
    //订单编号
    private String odOrderId;
    //菜品Id
    private Integer odDishesId;
    //菜品数量
    private Integer odDishesNums;
    //菜品价格
    private BigDecimal odDishesPrice;
    //菜品名
    private String odDishesName;
    //菜品图片
    private String odDishesImage;
    //菜品备注
    private String odDishesRemark;

    private Order order;//订单类

    //菜品销售数量   ---查询近七天TOP3商品方法返回使用
    private Integer odSumDishesNums;
}
